﻿using cap01.Common;
using cap01.Common.Redis;
using Savorboard.CAP.InMemoryMessageQueue;

namespace cap01.Web.Core.Extensions;

public static class CapEx
{
    public static void AddHuaskyCap(this IServiceCollection services)
    {
        services.AddCap(option =>
        {
            //option.UseInMemoryMessageQueue();
            option.UseInMemoryStorage();
            option.UseRedis("127.0.0.1:6379,password=jiandanmaokeji");
        });



    }
}
